package com.example.logintest1.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.logintest1.Entry.AdminMember;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;

public interface AdminMemberMapper extends BaseMapper<AdminMember> {
//    @Select("SELECT *, name AS val FROM qii_admin_member where user=#{user}")
@SelectProvider(type = AdminMemberSqlProvider.class, method = "selectWithWrapper")

    @Override
AdminMember selectOne(@Param(Constants.WRAPPER) Wrapper<AdminMember> wrapper);
//    AdminMember selectOne(@Param(Constants.WRAPPER) Wrapper<AdminMember> ew);
    void settoken(@Param("jwt") String jwt,
                  @Param("id") Long id);

    void deltoken(Long id);

}
